﻿@model Hrm.Services.ModifyPasswordDto
@{
    ViewBag.Title = "ModifyPassword";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div id="page-header" class="clearfix">
    <div class="page-header">
        <h2>修改密码</h2>
        <span class="txt">修改密码</span>
    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default toggle panelMove panelClose panelRefresh">
            <div class="panel-heading">
                <h4 class="panel-title">操作界面</h4>
            </div>
            <div class="panel-body pt0 pb0">
                @using (Html.BeginForm("ModifyPassword", "Admin", new { area = "" }, FormMethod.Post, new { @class = "form-horizontal group-border stripped" }))
                {
                    @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                    <div class="form-group">
                        @Html.LabelFor(model => model.OldPassword, htmlAttributes: new { @class = "col-lg-2 col-md-3 control-label" })
                        <div class="col-lg-10 col-md-9">
                            @Html.PasswordFor(model => model.OldPassword, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.OldPassword, "", new { @class = "text-danger" })
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(model => model.NewPassword, htmlAttributes: new { @class = "col-lg-2 col-md-3 control-label" })
                        <div class="col-lg-10 col-md-9">
                            @Html.PasswordFor(model => model.NewPassword, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.NewPassword, "", new { @class = "text-danger" })
                        </div>
                    </div>
                    <div class="form-group">
                        @Html.LabelFor(model => model.NewSurePassword, htmlAttributes: new { @class = "col-lg-2 col-md-3 control-label" })
                        <div class="col-lg-10 col-md-9">
                            @Html.PasswordFor(model => model.NewSurePassword, new { @class = "form-control" })
                            @Html.ValidationMessageFor(model => model.NewSurePassword, "", new { @class = "text-danger" })
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-lg-offset-2 col-md-offset-3 col-lg-10 col-md-9">
                            <input type="submit" value="保存" class="btn btn-primary" />
                            <a href="@Url.Action("Index", "Admin")" class="btn btn-primary">返回</a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>

